import { Column, Entity, PrimaryGeneratedColumn } from "typeorm";

@Entity()
export class ChromeList {
  /**
   * PrimaryColumn: 创建主键，但是要自己手动生成
   * PrimaryGeneratedColumn: 创建一个主列，该值将使用自动增量值自动生成
   */
  @PrimaryGeneratedColumn()
  id!: number;

  @Column({ type: "varchar" })
  name!: string;

  @Column({ type: "varchar" })
  domain!: string;

  @Column({ type: "varchar" })
  url?: string;

  @Column({ type: "varchar" })
  account?: string;

  @Column({ type: "varchar" })
  password?: string;
}
